from seleniumbase import BaseCase
from utils.config_loader import ConfigLoader
from flows.auth_flow import AuthFlow

class ProjectBaseTest(BaseCase):
    # 基础test,登录
    def setUp(self):
        super().setUp()
        cfg = ConfigLoader.load()
        user_cfg = cfg['user']['admin']
        # user_cfg = cfg['user']['Administrator']
        AuthFlow.login_as(self,user_cfg['username'],user_cfg['password'])